<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>回复</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/navigation_bar.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/posts.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/login.css') }}">
</head>
<body>

    <header>
        <nav class="nav-container">
            <div class="nav-left">
                <a href="#" class="nav-brand">论坛管理信息系统</a>
            </div>
            <div class="nav-right">
                <a href="{{ url_for('list') }}" class="nav-link">首页</a>
                <a href="{{ url_for('detail') }}" class="nav-link">主页</a>
                <a href="{{ url_for('editor') }}" class="nav-link">发帖</a>
                <a href="{{ url_for('login') }}" class="nav-link">注销</a>
            </div>
        </nav>
    </header>

    <div class="主体">
        <div class="post-container">
            <div class="post-header">
                <h2 class="post-title">{{ post[1] }}</h2>
                <div class="post-meta">
                    <div class="post-tags-container">
                        <span class="post-tags"><a href="{{ url_for('in_category', category = post[4]) }}">{{ post[4] }}</a></span>
                    </div>
                    <span class="post-author">帖主: <a href="{{ url_for('in_detail', user_id = post[6]) }}">{{ post[7] }}</a></span>
                    <span class="post-date">{{ post[2] }}</span>
                </div>
            </div>
            <div class="post-content">
                <p>{{ post[3] }}</p>
            </div>
        </div>
        <div class="注册框">
            <form method="post" id="editor-form">
                <div>
                    <textarea type="text" class="text" placeholder="要说的话" id="content" name="content"></textarea>
                </div>
                <form method="POST" action="{{ url_for('reply', post_id=post[0]) }}">
                    <div>
                        <input type="submit" class="提交" value="发送回复">
                    </div>
                </form>
            </form>
        </div>
    </div>
</body>
</html>